#include "sem.hpp"

//serve write
int main()
{
    Msg msg(gpathname, gproj_id, gCreater);
    while (true)
    {
        std::string str = msg.MsgRead();
        std::cout << str << std::endl;
        if (strcmp(str.c_str(), "break") == 0)
        {
            break;
        }
        sleep(1);
    }

    return 0;
}